package com.oa.modules.approvalsec1.service.impl;

import com.oa.common.utils.AppUtils;
import com.oa.common.utils.Constant;
import com.oa.modules.approvalsec1.dao.BiddDao;
import com.oa.modules.approvalsec1.entity.BiddEntity;
import com.oa.modules.approvalsec1.service.BiddService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.oa.common.utils.PageUtils;
import com.oa.common.utils.Query;


/**
 *
 *
 * @author jiangwei
 * @email 785297226@qq.com
 * @date 2022-05-05 17:01:41
 */
@Service("biddService")
public class BiddServiceImpl extends ServiceImpl<BiddDao, BiddEntity> implements BiddService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage page= AppUtils.getPage(new Query<BiddEntity>(), params);
        return AppUtils.setPage(page, baseMapper.findPage(params), baseMapper.findRecords(page, params));
    }


}
